-- GENERATED SPELL FOR [Woodpaw Alpha] --


function spell0_5258(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_5258', 610, 1)
end

function Sorts_5258(pUnit, Event)
local choix_sorts_5258 = math.random(0, 0)
if choix_sorts_5258 == 0 then
pUnit:RegisterEvent('spell0_5258', 1, 1)
end
end

function mob5258_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5258', math.random(1500, 3000), 1)
end

function mob5258_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5258_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5258_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5258, 1, 'mob5258_Action')
RegisterUnitEvent(5258, 2, 'mob5258_Leave')
RegisterUnitEvent(5258, 3, 'mob5258_Kill')
RegisterUnitEvent(5258, 4, 'mob5258_Die')
